VIEW cannot contain a parameter. (Error 3730)

This error occurs when trying to create a view from SQL DDL. If the SELECT statement part of the CREATE view statement contains any parameters, this error will be returned. To work around this issue, use the CREATE PROCEDURE statement instead.